]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensions-app: Add test dependency on generated desktop file
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 11 Sep 2025 12:12:02 +0000 (14:12 +0200)
committerMarge Bot <marge-bot@gnome.org>
Thu, 11 Sep 2025 16:18:25 +0000 (16:18 +0000)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3869>

subprojects/extensions-app/data/meson.build

index 920d57872352e4ffd70380fb4b4ecc0ac203540f..138cab558010f6815757f93426c0d5d02505cdef 100644 (file)
@@ -18,7 +18,7 @@ gnome.compile_resources(
   install_dir: pkgdatadir
 )
 
-desktop_file = app_id + '.desktop'
+desktop_id = app_id + '.desktop'
 desktopconf = configuration_data()
 # We substitute in bindir so it works as an autostart
 # file when built in a non-system prefix
@@ -26,13 +26,13 @@ desktopconf.set('bindir', bindir)
 desktopconf.set('app_id', app_id)
 desktopconf.set('prgname', prgname)
 
-i18n.merge_file(
+desktop_file = i18n.merge_file(
   input: configure_file(
     input: base_id + '.desktop.in.in',
-    output: desktop_file + '.in',
+    output: desktop_id + '.in',
     configuration: desktopconf
   ),
-  output: desktop_file,
+  output: desktop_id,
   po_dir: po_dir,
   install: true,
   install_dir: desktopdir,
@@ -40,7 +40,7 @@ i18n.merge_file(
 )
 
 if (desktop_file_validate.found())
-  test('Validating ' + desktop_file,
+  test('Validating ' + desktop_id,
     desktop_file_validate,
     args: [desktop_file],
     workdir: meson.current_build_dir()